package com.wgts.wgts.localbean;

import android.os.Parcel;
import android.os.Parcelable;

public class LocalAppModleResult implements Parcelable{
    public String name;

    public String sourceUrl;

    public String actionUrl;

    public boolean visible;

    public String id;

    public LocalAppModleResult() {
    }

    protected LocalAppModleResult(Parcel in) {
        name = in.readString();
        sourceUrl = in.readString();
        actionUrl = in.readString();
        visible = in.readByte() != 0;
        id = in.readString();
    }

    public static final Creator<LocalAppModleResult> CREATOR = new Creator<LocalAppModleResult>() {
        @Override
        public LocalAppModleResult createFromParcel(Parcel in) {
            return new LocalAppModleResult(in);
        }

        @Override
        public LocalAppModleResult[] newArray(int size) {
            return new LocalAppModleResult[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(sourceUrl);
        dest.writeString(actionUrl);
        dest.writeByte((byte) (visible ? 1 : 0));
        dest.writeString(id);
    }
}
